﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace QXGameEngine.Control {

    public partial class QXIcon : UserControl {

        /// <summary>
        /// 图标控件
        /// </summary>
        public QXIcon() {
            InitializeComponent();
        }

        /// <summary>
        /// 设置图标图片
        /// </summary>
        public Brush BodySource {
            set { Container.Background = value; }
        }

        /// <summary>
        /// 获取或设置图标悬停提示
        /// </summary>
        public string Tip {
            get { return Details.Text; }
            set { Details.Text = value; }
        }
    }
}
